package com.cencat.merchant.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 商家模块配置类
 * @author cencat
 * @since 2024-01-01
 */
@Configuration
public class MerchantConfig {

    /**
     * 配置Swagger OpenAPI
     * @return OpenAPI配置
     */
    @Bean
    public OpenAPI merchantOpenAPI() {
        return new OpenAPI()
                .info(new Info()
                        .title("Cencat商家管理模块API")
                        .description("商家管理模块接口文档")
                        .version("1.0.0")
                        .contact(new Contact()
                                .name("cencat")
                                .email("cencat@example.com")));
    }
}